package com.shop.listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
//@WebListener
public class MyServletContextListener  implements ServletContextListener {
	public   MyServletContextListener(){
		System.out.println("===创建application监听器===");
	}
	
	public void contextInitialized(ServletContextEvent sce){
		ServletContext application = sce.getServletContext();
	    System.out.println("====初始化contextInitialized==");	  
	}
	  
	  public void contextDestroyed(ServletContextEvent sce){
		  System.out.println("====销毁contextDestroyed==");
	  }
}
